<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.14.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DM-CtrlH7-BF-DevProgram: UART_InitTypeDef Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="50x5.png"/></td>
  <td id="projectalign">
   <div id="projectname">DM-CtrlH7-BF-DevProgram<span id="projectnumber">&#160;beta 0.1</span>
   </div>
   <div id="projectbrief">C.ONE Studio Damiao Development Board Framework</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.14.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search/",'.html');
</script>
<script type="text/javascript">
$(function() { codefold.init(); });
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search',true);
  $(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(function(){initNavTree('struct_u_a_r_t___init_type_def.html','','struct_u_a_r_t___init_type_def-members'); });
</script>
<div id="container">
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">UART_InitTypeDef Struct Reference<div class="ingroups"><a class="el" href="group___s_t_m32_h7xx___h_a_l___driver.html">STM32H7xx_HAL_Driver</a> &raquo; <a class="el" href="group___u_a_r_t.html">UART</a> &raquo; <a class="el" href="group___u_a_r_t___exported___types.html">UART Exported Types</a></div></div></div>
</div><!--header-->
<div class="contents">

<p>UART Init Structure definition.  
 <a href="#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="stm32h7xx__hal__uart_8h_source.html">stm32h7xx_hal_uart.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 id="header-pub-attribs" class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ae460c2e4d7ddc67bca9f5756f45b1d83" id="r_ae460c2e4d7ddc67bca9f5756f45b1d83"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae460c2e4d7ddc67bca9f5756f45b1d83">BaudRate</a></td></tr>
<tr class="memitem:a0f1cd85e62aa4fd4b36ee9e610e7789f" id="r_a0f1cd85e62aa4fd4b36ee9e610e7789f"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0f1cd85e62aa4fd4b36ee9e610e7789f">WordLength</a></td></tr>
<tr class="memitem:a6717dfe595617c7b2d57139d9cd306ef" id="r_a6717dfe595617c7b2d57139d9cd306ef"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6717dfe595617c7b2d57139d9cd306ef">StopBits</a></td></tr>
<tr class="memitem:adc92243425cb18cb8b5f03692841db48" id="r_adc92243425cb18cb8b5f03692841db48"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#adc92243425cb18cb8b5f03692841db48">Parity</a></td></tr>
<tr class="memitem:ab2ee6ea5a5d4ca5ee6b759be197bcfcb" id="r_ab2ee6ea5a5d4ca5ee6b759be197bcfcb"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab2ee6ea5a5d4ca5ee6b759be197bcfcb">Mode</a></td></tr>
<tr class="memitem:adbf4734130666b94201c6658464c1622" id="r_adbf4734130666b94201c6658464c1622"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#adbf4734130666b94201c6658464c1622">HwFlowCtl</a></td></tr>
<tr class="memitem:a77c2c86a2186e09cbf022e27c0c82324" id="r_a77c2c86a2186e09cbf022e27c0c82324"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a77c2c86a2186e09cbf022e27c0c82324">OverSampling</a></td></tr>
<tr class="memitem:a1662b82dc43d9137c3a4485794c94388" id="r_a1662b82dc43d9137c3a4485794c94388"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1662b82dc43d9137c3a4485794c94388">OneBitSampling</a></td></tr>
<tr class="memitem:af611d87f44dd63f0719f202f92c90df3" id="r_af611d87f44dd63f0719f202f92c90df3"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af611d87f44dd63f0719f202f92c90df3">ClockPrescaler</a></td></tr>
</table>
<a name="details" id="details"></a><h2 id="header-details" class="groupheader">Detailed Description</h2>
<div class="textblock"><p>UART Init Structure definition. </p>
</div><a name="doc-variable-members" id="doc-variable-members"></a><h2 id="header-doc-variable-members" class="groupheader">Member Data Documentation</h2>
<a id="ae460c2e4d7ddc67bca9f5756f45b1d83" name="ae460c2e4d7ddc67bca9f5756f45b1d83"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae460c2e4d7ddc67bca9f5756f45b1d83">&#9670;&#160;</a></span>BaudRate</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t UART_InitTypeDef::BaudRate</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This member configures the UART communication baud rate. The baud rate register is computed using the following formula: </p>
<h1 class="doxsection"><a class="anchor" id="autotoc_md27"></a>
LPUART:</h1>
<p>Baud Rate Register = ((256 * lpuart_ker_ckpres) / ((huart-&gt;Init.BaudRate))) where lpuart_ker_ck_pres is the UART input clock divided by a prescaler </p>
<h1 class="doxsection"><a class="anchor" id="autotoc_md28"></a>
UART:</h1>
<ul>
<li>If oversampling is 16 or in LIN mode, Baud Rate Register = ((uart_ker_ckpres) / ((huart-&gt;Init.BaudRate)))</li>
<li>If oversampling is 8, Baud Rate Register[15:4] = ((2 * uart_ker_ckpres) / ((huart-&gt;Init.BaudRate)))[15:4] Baud Rate Register[3] = 0 Baud Rate Register[2:0] = (((2 * uart_ker_ckpres) / ((huart-&gt;Init.BaudRate)))[3:0]) &gt;&gt; 1 where uart_ker_ck_pres is the UART input clock divided by a prescaler </li>
</ul>

</div>
</div>
<a id="af611d87f44dd63f0719f202f92c90df3" name="af611d87f44dd63f0719f202f92c90df3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af611d87f44dd63f0719f202f92c90df3">&#9670;&#160;</a></span>ClockPrescaler</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t UART_InitTypeDef::ClockPrescaler</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Specifies the prescaler value used to divide the UART clock source. This parameter can be a value of <a class="el" href="group___u_a_r_t___clock_prescaler.html">UART Clock Prescaler</a>. </p>

</div>
</div>
<a id="adbf4734130666b94201c6658464c1622" name="adbf4734130666b94201c6658464c1622"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adbf4734130666b94201c6658464c1622">&#9670;&#160;</a></span>HwFlowCtl</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t UART_InitTypeDef::HwFlowCtl</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Specifies whether the hardware flow control mode is enabled or disabled. This parameter can be a value of <a class="el" href="group___u_a_r_t___hardware___flow___control.html">UART Hardware Flow Control</a>. </p>

</div>
</div>
<a id="ab2ee6ea5a5d4ca5ee6b759be197bcfcb" name="ab2ee6ea5a5d4ca5ee6b759be197bcfcb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2ee6ea5a5d4ca5ee6b759be197bcfcb">&#9670;&#160;</a></span>Mode</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t UART_InitTypeDef::Mode</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Specifies whether the Receive or Transmit mode is enabled or disabled. This parameter can be a value of <a class="el" href="group___u_a_r_t___mode.html">UART Transfer Mode</a>. </p>

</div>
</div>
<a id="a1662b82dc43d9137c3a4485794c94388" name="a1662b82dc43d9137c3a4485794c94388"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1662b82dc43d9137c3a4485794c94388">&#9670;&#160;</a></span>OneBitSampling</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t UART_InitTypeDef::OneBitSampling</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Specifies whether a single sample or three samples' majority vote is selected. Selecting the single sample method increases the receiver tolerance to clock deviations. This parameter can be a value of <a class="el" href="group___u_a_r_t___one_bit___sampling.html">UART One Bit Sampling Method</a>. </p>

</div>
</div>
<a id="a77c2c86a2186e09cbf022e27c0c82324" name="a77c2c86a2186e09cbf022e27c0c82324"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77c2c86a2186e09cbf022e27c0c82324">&#9670;&#160;</a></span>OverSampling</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t UART_InitTypeDef::OverSampling</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Specifies whether the Over sampling 8 is enabled or disabled, to achieve higher speed (up to f_PCLK/8). This parameter can be a value of <a class="el" href="group___u_a_r_t___over___sampling.html">UART Over Sampling</a>. </p>

</div>
</div>
<a id="adc92243425cb18cb8b5f03692841db48" name="adc92243425cb18cb8b5f03692841db48"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc92243425cb18cb8b5f03692841db48">&#9670;&#160;</a></span>Parity</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t UART_InitTypeDef::Parity</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Specifies the parity mode. This parameter can be a value of <a class="el" href="group___u_a_r_t___parity.html">UART Parity</a> </p><dl class="section note"><dt>Note</dt><dd>When parity is enabled, the computed parity is inserted at the MSB position of the transmitted data (9th bit when the word length is set to 9 data bits; 8th bit when the word length is set to 8 data bits). </dd></dl>

</div>
</div>
<a id="a6717dfe595617c7b2d57139d9cd306ef" name="a6717dfe595617c7b2d57139d9cd306ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6717dfe595617c7b2d57139d9cd306ef">&#9670;&#160;</a></span>StopBits</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t UART_InitTypeDef::StopBits</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Specifies the number of stop bits transmitted. This parameter can be a value of <a class="el" href="group___u_a_r_t___stop___bits.html">UART Number of Stop Bits</a>. </p>

</div>
</div>
<a id="a0f1cd85e62aa4fd4b36ee9e610e7789f" name="a0f1cd85e62aa4fd4b36ee9e610e7789f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f1cd85e62aa4fd4b36ee9e610e7789f">&#9670;&#160;</a></span>WordLength</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t UART_InitTypeDef::WordLength</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Specifies the number of data bits transmitted or received in a frame. This parameter can be a value of <a class="el" href="group___u_a_r_t_ex___word___length.html">UARTEx Word Length</a>. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>C:/Users/ASUS/Desktop/dm-ctrlH7-balance-9025test/Drivers/STM32H7xx_HAL_Driver/Inc/<a class="el" href="stm32h7xx__hal__uart_8h_source.html">stm32h7xx_hal_uart.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="page-nav" class="page-nav-panel">
<div id="page-nav-resize-handle"></div>
<div id="page-nav-tree">
<div id="page-nav-contents">
</div><!-- page-nav-contents -->
</div><!-- page-nav-tree -->
</div><!-- page-nav -->
</div><!-- container -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a href="struct_u_a_r_t___init_type_def.html">UART_InitTypeDef</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.14.0 </li>
  </ul>
</div>
</body>
</html>
